class CreateBuildTypes < ActiveRecord::Migration
  def self.up
    create_table :build_types do |t|
      t.column :name, :string
      t.column :configure_command, :string
      t.column :make_command, :string
      t.column :run_command, :string
      t.column :architecture_id, :integer
    end
    execute "ALTER TABLE build_types CHANGE COLUMN configure_command configure_command MEDIUMTEXT"
    execute "ALTER TABLE build_types CHANGE COLUMN make_command make_command MEDIUMTEXT"
    execute "ALTER TABLE build_types CHANGE COLUMN run_command run_command MEDIUMTEXT"
  end

  def self.down
    drop_table :build_types
  end
end
